package com.itheima.pojo;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Comment {
	@NotNull
	private Integer id;//主键ID
	@NotNull
	private Integer userId;//用户ID
	@NotNull
	private Integer articleId;//文章ID
	private String comment;//评论
	private LocalDateTime createTime;//创建时间

	private String nickname; //多表查询用户名称
	private String userPic; //多表查询用户头像

}
